package com.easyctba.core.domain.vo;

import com.easyctba.common.translation.annotation.Translation;
import com.easyctba.common.translation.constant.TransConstant;
import com.easyctba.core.domain.CtbaEntropy;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.easyctba.common.excel.annotation.ExcelDictFormat;
import com.easyctba.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 信息熵分析视图对象 ctba_entropy
 *
 * @author LionLi
 * @date 2024-02-18
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CtbaEntropy.class)
public class CtbaEntropyVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 项目id
     */
    @ExcelProperty(value = "项目id")
    private Long projectId;

    /**
     * 信息熵文本
     */
    @ExcelProperty(value = "信息熵文本")
    private String entropyText;

    /**
     * 分析状态
     */
    @ExcelProperty(value = "分析状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ctba_entropy_status")
    private String entropyStatus;

    /**
     * 分析结果
     */
    @ExcelProperty(value = "分析结果")
    private Double result;

    /**
     * 分析实际文本长度
     */
    @ExcelProperty(value = "分析实际文本长度")
    private Long size;

    /**
     * 分析耗时(ms)
     */
    @ExcelProperty(value = "分析耗时(ms)")
    private Long time;

    /**
     * 源文件地址
     */
    @ExcelProperty(value = "源文件地址")
    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long url;
}
